<?php
$this->pageTitle = 'View backend user';
$this->menu = array(
    array('label' => Yii::t('app', 'Create') . ' ' . $model->label(), 'url' => array('create')),
    array('label' => Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url' => array('admin')),
);
?>
<h3>View a backend user ! </h3>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
        'username',
        'email',
        array
            (
            'name' => 'First Name',
            'value' => TblBackendUser::getUserProfile($model->id, 'first_name'),
        ),
        array
            (
            'name' => 'Last Name',
            'value' => TblBackendUser::getUserProfile($model->id, 'last_name'),
        ),
        array
            (
            'name' => 'Date of Birth',
            'value' => TblBackendUser::getUserProfile($model->id, 'date_of_birth'),
        ),
        array
            (
            'name' => 'Phone No',
            'value' => TblBackendUser::getUserProfile($model->id, 'phone'),
        ),
        array
            (
            'name' => 'Knowlarity Ext No',
            'value' => TblBackendUser::getUserProfile($model->id, 'knowlarity_ext_no'),
        ),
        array
            (
            'name' => 'Address line1',
            'value' => TblBackendUser::getUserProfile($model->id, 'address_line1'),
        ),
        array
            (
            'name' => 'Address line2',
            'value' => TblBackendUser::getUserProfile($model->id, 'address_line2'),
        ),
        array
            (
            'name' => 'State',
            'value' => TblBackendUser::getUserProfile($model->id, 'street'),
        ),
        array
            (
            'name' => 'Postal Code',
            'value' => TblBackendUser::getUserProfile($model->id, 'zip_code'),
        ),
        array
            (
            'name' => 'About user',
            'value' => TblBackendUser::getUserProfile($model->id, 'about'),
        ),
        array
            (
            'name' => 'Experience',
            'value' => TblBackendUser::getUserProfile($model->id, 'experience'),
        ),
        array
            (
            'name' => 'Other Information',
            'value' => TblBackendUser::getUserProfile($model->id, 'other_info'),
        ),
        array
            (
            'name' => 'status',
            'type' => 'image',
            'htmlOptions' => array('class' => 'gridmaxwidth', 'style' => 'width: 15px !important'),
            'value' => SkillConfig::status($model),
        ),
        array(
            'name' => 'createtime',
            'value' => date('Y-m-d', $model->createtime),
        ),
        array(
            'name' => 'update_time',
            'value' => date('Y-m-d ', $model->update_time),
        )
    ),
));
?>

